package com.gxa.springboot229.controller;

import com.gxa.springboot229.util.JsonResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
@RequestMapping("/tkt")
public class TicketController {
    @PostMapping("/add")
    public Map add(){
        //通过TickeService 完成操作
        JsonResult jsonResult = new JsonResult();
        jsonResult.setCode("1");
        return jsonResult.getValues();
    }
}
